package com.sistemagestion.BO;

import java.util.List;

import com.sistemagestion.DAO.FormaPagoRepository;
import com.sistemagestion.Entities.FormaPago;

public class FormaPagoBO {
	
	FormaPagoRepository repository = new FormaPagoRepository();
	
	public List<FormaPago> getAll()
	{
		return repository.getAll();
	}
	
	public FormaPago getById(int IdFormaPago)
	{
		try{
			return repository.getById(IdFormaPago);
		} catch (Exception ex)
		{
			System.out.println(ex.toString());
			return null;
		}
	}

}
